<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>pages/news/html_news/style/index.css" media="all" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>pages/news/html_news/style/style.css" />
    <script type="text/javascript" src="<%=basePath%>pages/news/js/jquery-1.5.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>pages/news/html_news/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="<%=basePath%>pages/news/html_news/js/sprite.js"></script>
</head>

<body>
<div class="top">
  <div class="logo"></div>
  <div class="search"></div>
  <div class="english"></div>
  <div class="topmenu">
    <ul id="navigationmenu">
        <li><a class="home" href="<%=basePath%>html_news"></a></li>
        <li><a class="services" href="<%=basePath%>html_news/list/?newstypeid=1"></a></li>
        <li><a class="portfolio" href="<%=basePath%>html_news/list/?newstypeid=2"></a></li>
        <li><a class="about" href="<%=basePath%>html_news/summary"></a></li>
    </ul>
</div>
  <div class="fix"></div>
</div>

<div class="center">
  <div class="centertop"></div>
  <div class="centerimg"></div>
  <div class="centerbottom"></div>
  <div class="fix"></div>
  
  <div class="centercontent">
  	<div class="centerleft">
		<div style="font-size:15px; font-weight: bold; color:#F30; margin-bottom:12px; ">热点新闻</div>
			<c:forEach var="newshot" items="${newsmap['newsHot']}" end="1" begin="0">
			<ul class="cha_ul">
				<li><a href="<%=basePath%>html_news/listcontent/?news.id=${newshot.id}" style="width:160px;  text-overflow:ellipsis; overflow:hidden;white-space:nowrap;">${newshot.newsTitle }</a></li>
				<li style="color:#666;">点击率：${newshot.clickRate }</li>
			</ul>
			</c:forEach>
  	</div>
    <div class="centernews">
      <div class="menubox">
 <!--     
      	<div class="news1"></div>
        <div class="news2"></div>
 -->       
        <ul>
            <li id="one1" onclick="setTab('one',1,2)"  class="hover">每日新闻</li>
            <li id="one2" onclick="setTab('one',2,2)" >财经短讯</li>
        </ul>
      </div>
      <div class="newslist">
        <div id="con_one_1" class="hover">
			<ul class="cha_ul">
				<c:forEach var="newss" items="${newsmap['newsDay']}" begin="0" end="4">
				    <li><span class="right">
				   			<fmt:formatDate value="${newss.newsTime }"pattern="yyyy-MM-dd" />
				   		</span>
				   		<span style="width:120px; text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><a href="<%=basePath%>html_news/listcontent/?news.id=${newss.id}">${newss.newsTitle}</a></span>
					</li>
				</c:forEach>
			</ul>
			<c:forEach var="newss" items="${newsmap['newsDay']}" begin="0" end="0">
				<span class="right"><a href="<%=basePath%>html_news/list/?newstypeid=${newss.newsType.id }" style=" color:#000; text-decoration:none;">更多>></a></span>
			</c:forEach>
        </div>
        <div id="con_one_2" style="display:none" class="hover">
       		<ul class="cha_ul">
       			<c:forEach var="newsmsg" items="${newsmap['newsMsg']}"  begin="0" end="4">
	        		<li>
	        			<span class="right">
	        				<fmt:formatDate value="${newsmsg.newsTime }"pattern="yyyy-MM-dd" />
	        			</span>
	        			<span style="width:120px; text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><a href="<%=basePath%>html_news/listcontent/?news.id=${newsmsg.id}">${newsmsg.newsTitle }</a></span>
	        		</li>
        		</c:forEach>
        	</ul>
        	<c:forEach var="newss" items="${newsmap['newsMsg']}" begin="0" end="0">
				<span class="right"><a href="<%=basePath%>html_news/list/?newstypeid=${newss.newsType.id }" style=" color:#000; text-decoration:none;">更多>></a></span>
			</c:forEach>
        </div>
      </div>
	</div>
    
    <div class="centerright">
        <div class="navigationcontent">
            <div id="con_two_1" class="hover"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent.png" width="269" height="138" /></div>
            <div id="con_two_2" style="display:none"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent2.png" width="269" height="138" /></div>
            <div id="con_two_3" style="display:none"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent3.png" width="269" height="138" /></div>
            <div id="con_two_4" style="display:none"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent4.png" width="269" height="138" /></div>
            <div id="con_two_5" style="display:none"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent5.png" width="269" height="138" /></div>
            <div id="con_two_6" style="display:none"><img src="<%=basePath%>pages/news/html_news/images/navigationcontent6.png" width="269" height="138" /></div>
        </div>
        <div class="navigation">
            <ul>
                <li id="two1" onclick="setTab('two',1,6)"  class="hover">公司</li>
                <li id="two2" onclick="setTab('two',2,6)" >融资</li>
                <li id="two3" onclick="setTab('two',3,6)" >资本市场和证券</li>
                <li id="two4" onclick="setTab('two',4,6)" >国际贸易</li>
                <li id="two5" onclick="setTab('two',5,6)" >争议解决</li>
                <li id="two6" onclick="setTab('two',6,6)" >知识产权</li>
            </ul>
        </div>
    </div>
  <div class="fix"></div>
  </div>
</div>
<div class="separate"><img src="<%=basePath%>pages/news/html_news/images/separatebg.png" width="941" height="6" /></div>

<div class="bottom">
  <div class="state"></div>
  <div class="query"></div>
  <div class="querybox"></div>
</div>

<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){for(i=1;i<=n;i++){var menu=document.getElementById(name+i);var con=document.getElementById("con_"+name+"_"+i);menu.className=(i==cursel?"hover":"");con.style.display=(i==cursel?"block":"none");}
}
//-->
</script>
</body>
</html>
